<template>
    <div id="app">
        <router-view/>
    </div>
</template>

<script>
import {getToken} from "@/util/auth";

export default {
    name: "app",
    data() {
        return {};
    },
    watch: {},
    created() {
      if(getToken()) {
        this.$store.dispatch('initDict')
      }
    },
    methods: {},
    computed: {}
};
</script>
<style lang="scss">
#app {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
</style>
